package org.myspringmvc.web.context;

import jakarta.servlet.ServletContext;
import lombok.Data;
import org.myspringmvc.context.ApplicationContext;

/**
 * @author 莫磊
 * @date 2025/8/13
 * @description web项目的IoC容器
 */
@Data
public class WebApplicationContext extends ApplicationContext {

    private ServletContext servletContext;


    public WebApplicationContext(String configPath, ServletContext servletContext) {
        super(configPath);
        this.servletContext = servletContext;
    }

    public WebApplicationContext(String configPath) {
        super(configPath);
    }
}
